#include "AudioManage.h"


AudioManage::AudioManage()
{
}


AudioManage::~AudioManage()
{
}

int AudioManage::startID = -1;
int AudioManage::playID = -1;

void AudioManage::playStartMusic()
{
	startID = AudioEngine::play2d("Music/start.mp3", true, 0.5f);
}

void AudioManage::playPlayMusic()
{
	playID = AudioEngine::play2d("Music/play.mp3", true, 0.5f);
}

void AudioManage::pausePlayMusic()
{
	AudioEngine::pause(playID);
}

void AudioManage::continuePlayMusic()
{
	AudioEngine::resume(playID);
}

void AudioManage::stopStartMusic()
{
	if (startID > -1)
	{
		AudioEngine::stop(startID);
	}
}

void AudioManage::stopPlayMusic()
{
	if (playID > -1)
	{
		AudioEngine::stop(playID);
	}
}

void AudioManage::buttonSound()
{
	AudioEngine::play2d("Music/button.mp3");
}

void AudioManage::button1Sound()
{
	AudioEngine::play2d("Music/button1.mp3");
}

void AudioManage::button2Sound()
{
	AudioEngine::play2d("Music/button2.mp3");
}

void AudioManage::cardSound()
{
	AudioEngine::play2d("Music/card.mp3");
}

void AudioManage::bellSound()
{
	AudioEngine::play2d("Music/bell.mp3");
}

void AudioManage::comboSound()
{
	AudioEngine::play2d("Music/combo.mp3");
}

void AudioManage::cupSound()
{
	AudioEngine::play2d("Music/cup.mp3");
}

void AudioManage::rightSound()
{
	AudioEngine::play2d("Music/right.mp3");
}

void AudioManage::wrongSound()
{
	AudioEngine::play2d("Music/wrong.mp3");
}

void AudioManage::playEndMusic()
{
	AudioEngine::play2d("Music/end.mp3");
}
